# == Schema Information
#
# Table name: admin_helpers
#
#  id         :integer(4)      not null, primary key
#  sort       :string(255)
#  title      :string(255)
#  content    :text
#  created_at :datetime
#  updated_at :datetime
#

class AdminHelper < ActiveRecord::Base
  
  Sort = %w( 帮助 公告)
  
  named_scope :notices , :conditions => "sort = '公告' " , :order => "created_at desc"
  named_scope :helper , :conditions => "sort = '帮助' " , :order => "created_at desc"
  
end
